package com.living.player;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;

import com.living.player.widget.media.OnIjkPlayStateListener;
import com.md.basedpc.common.PHThreadPool;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import tv.danmaku.ijk.media.player.IMediaPlayer;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

public class LivePlayerBase extends RelativeLayout implements OnIjkPlayStateListener {

    static {
        // init player
        IjkMediaPlayer.loadLibrariesOnce(null);
        IjkMediaPlayer.native_profileBegin("libijkplayer.so");
    }

    public  String mVideoPath;

    public LivePlayerBase(@NonNull Context context) {
        super(context);
        init();
    }

    public LivePlayerBase(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public LivePlayerBase(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    protected void init() {
        //
    }

    @Override
    public void onPrepare() {

    }

    @Override
    public void onStart() {

    }

    @Override
    public void onPause() {

    }

    @Override
    public void onError() {

    }

    @Override
    public void onComplete() {

    }
}
